import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/HomeView/index.vue'),
    children: [
      {
        path: '/',
        name: 'homeIndex',
        component: () => import('@/views/homeIndex/index.vue')
      },
      {
        path: '/dwgDetail',
        name: 'dwgDetail',
        component: () => import('@/views/dwgDetail/index.vue')
      },
      {
        path: '/featurelist',
        name: 'featurelist',
        component: () => import('@/views/featurelist/index.vue')
      },
      {
        path: '/organization',
        name: 'organization',
        component: () => import('@/views/organization/index.vue')
      },
       {
        path: '/mine',
        name: 'mine',
        component: () => import('@/views/mine/index.vue')
      },
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue')
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
